<?php
Yii::import("application.util.PortalCache");
Yii::import("application.modules.manage.util.LoginStat");
class SiteController extends PortalController
{
	public function actionIndex()
	{
//        $loginstat = new LoginStat();
//        exit($loginstat->GetIP());

        $this->data['active']="home";
		$this->render('index',$this->data);
	}

    public function actionChangelang(){
        Yii::app()->request->cookies['lang'] = new CHttpCookie('lang', $_GET['lang']);;
        echo true;
    }

    public function  actionIp(){
        $loginstat = new LoginStat();
        exit($loginstat->GetIP());
    }

}